package cn.AOP;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
import org.aspectj.lang.annotation.Before;
@Component
@Aspect
public class MyAspect {
    @Before("within(cn.event.*)")
    public void  aopBefore(){
        System.out.println("拦截...");
    }
}
